
import os, sys
import pysvn

#===============================================================================
client = pysvn.Client()
rev = client.update('test/', True, pysvn.Revision( pysvn.opt_revision_kind.number, 3358))
print(rev)
#===============================================================================

sys.path.append('C:/VC/assetserver') # the parent directory of the project
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'

#from assets.damn.analyzer import Managers
from assets.damn.transcoder import Transcoder
from assets.damn.provider import Provider

provider = Provider()

class CB():
  def addFile(self, path):
    print('ADD', path)
  def deleteFile(self, path):
    print('DELETE F', path)
  def deleteDir(self, path):
    print('DELETE D', path)
  def updateFile(self, path):
    print('UPDATE', path)
    
succ = provider.update('https://', 'test/', CB())
print(succ)
